package com.cyj.dream.admin.job;

import cn.hutool.core.date.DateUtil;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Description: 测试xxljob
 * @BelongsProject: DreamChardonnayCloud
 * @BelongsPackage: com.cyj.dream.admin.job
 * @Author: ChenYongJia
 * @CreateTime: 2021-11-11 18:48
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Component
public class TestXxlJob {

    private Logger logger = LoggerFactory.getLogger(TestXxlJob.class);

    @XxlJob("testXxlJobHandler")
    public void testXxlJobHandler() throws Exception {
        System.out.println("测试成功===============================>" + DateUtil.now());
        System.out.println("测试成功===============================>" + DateUtil.now());
        System.out.println("测试成功===============================>" + DateUtil.now());
        System.out.println("测试成功===============================>" + DateUtil.now());
        System.out.println("测试成功===============================>" + DateUtil.now());
    }


}
